package com.mifengs.mall.di.module;

import com.mifengs.commonbase.di.scope.FragmentScope;
import com.mifengs.mall.ui.main.HomeContract;
import com.mifengs.mall.ui.main.HomePresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lihaoqi on 2017/10/30.
 */
@Module
public class HomeFrgModule {

    public final HomeContract.View mView;

    public HomeFrgModule(HomeContract.View mView) {
        this.mView = mView;
    }

    @FragmentScope
    @Provides
    public HomePresenter providePresenter() {
        return new HomePresenter(mView);
    }

}
